Repository navigation
fix(mcpx): green the environment-doc and documentation-link guards (#8720) - #9986
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 42 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Part of #8720 (mcpx guard tests red on clean main). This PR greens two of the three still-failing guards; the third gets its own follow-on (below).
What was failing at current main (verified this shift)
The two settings guards named on #8720 as filed (
TestEveryDocumentHasAChapter,TestTheScriptEnvironmentIsWhatTheCodeSets) already pass — they were fixed after the issue was filed. Still red:internal/settingsTestTheEnvironmentDocIsCurrent—docs/environment.mdwas stale. Fixed by the guard's own mechanism:go test ./internal/settings -run TestTheEnvironmentDocIsCurrent -update.internal/defaultsTestEveryDocumentationLinkResolves— 25 references toplugin/opencode/mcpx/daemon.ts/ops.gen.ts, which ceased to exist when the plugin-core relocation (WIP: move shared mcpx daemon files into plugin core #7166, 9dd72a5) moved the shared files toplugin/core/. Repointed every reference toplugin/core/daemon.ts/plugin/core/ops.gen.ts(line anchors carried over from the relocation, which moved the files intact), and reworded one Go symbol reference indocs/public-client.md(internal/api.Ops) that the checker read as a path.Verified on the laptop at this branch:
go test ./internal/settings/passes in full;go test ./internal/defaults/ -run TestEveryDocumentationLinkResolvespasses.Not in this PR
TestNoPackageRedeclaresADefaultstill fails with 11 inline constants (cli adapter-import timeouts x2, daemon scriptWaitDelay, mcpauth failover token lifetimes x4, testsupport x4). Those need per-site judgment — move tointernal/defaults/defaults.jsonwhere the value is policy, allowlist with a reason where it is protocol/test arithmetic — and are routed as a separate follow-on task from #8720's triage (task 15294) rather than rushed inside this one.Task 15294, lane code-d.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.